import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/store/` + url, ...arg)

/**
 * storeApi接口管理器
 *
 * @author mengxiaowei
 * @date  2024/08/22 08:54
 **/
export default {
	// 获取store分页
	storePage(data) {
		return request('page', data, 'get')
	},
	// 提交store表单 edit为true时为编辑，默认为新增
	storeSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除store
	storeDelete(data) {
		return request('delete', data)
	},
	// 获取store详情
	storeDetail(data) {
		return request('detail', data, 'get')
	}
}
